<template>
  <div class="questionnaire-container">
    <!-- 导航栏保持不变 -->
    <div class="navbar">
      <div class="nav-back" @click="$router.go(-1)">
        <i class="fas fa-chevron-left"></i>
      </div>
      <!-- <div class="nav-title">员工自我关怀问卷</div> -->
      <div></div>
    </div>

    <!-- 引导语封面内容 -->
    <div class="cover-container">
      <!-- 顶部装饰元素 -->
      <div class="decoration-top">
        <div class="circle circle-1"></div>
        <div class="circle circle-2"></div>
        <div class="circle circle-3"></div>
      </div>

      <!-- 主要内容区域 -->
      <div class="cover-content">
        <!-- 标题区域 -->
        <div class="cover-header">
          <h1 class="cover-title">员工自我关怀问卷</h1>
          <div class="title-divider"></div>
          <p class="cover-subtitle">一份帮助您了解自身状态的自我觉察工具</p>
        </div>

        <!-- 信息卡片 -->
        <div class="info-cards">
          <!-- 测评信息卡片 -->
          <div class="info-card">
            <div class="card-header">
              <i class="fas fa-clipboard-list card-icon"></i>
              <h3>测评信息</h3>
            </div>
            <div class="card-content">
              <div class="info-item">
                <span class="info-label">测评工具名称：</span>
                <span class="info-value">员工自我关怀问卷</span>
              </div>
              <div class="info-item">
                <span class="info-label">题量：</span>
                <span class="info-value">15-50题</span>
              </div>
              <div class="info-item">
                <span class="info-label">预计用时：</span>
                <span class="info-value">3-10分钟</span>
              </div>
            </div>
          </div>

          <!-- 测评介绍卡片 -->
          <div class="info-card">
            <div class="card-header">
              <i class="fas fa-info-circle card-icon"></i>
              <h3>测评介绍</h3>
            </div>
            <div class="card-content">
              <p>
                这是一份专为您设计的自我觉察工具，旨在帮助您更好地了解近期的情绪状态、压力感受、睡眠质量、工作倦怠等方面。
              </p>
              <p>
                您可以初步评估自己心理状态，从而更有针对性地进行自我关怀与状态调整。
              </p>
              <p>
                测评共2-3个模块（根据前面作答匹配后续题目），共包含约15-50道题目，用时约3-10分钟。
              </p>
            </div>
          </div>

          <!-- 指导语卡片 -->
          <div class="info-card">
            <div class="card-header">
              <i class="fas fa-comment-alt card-icon"></i>
              <h3>指导语</h3>
            </div>
            <div class="card-content">
              <p>
                请您在安静、舒适的环境中，仔细阅读题目并选择最符合您真实感受的选项。
              </p>
              <p>答案没有对错之分，您的真实反馈就是对自我最大的关怀。</p>
              <p class="privacy-note">
                所有信息都将严格保密，仅用于为您提供后续可能的支持服务参考。
              </p>
            </div>
          </div>
        </div>

        <!-- 开始按钮 -->
        <div class="action-section">
          <button class="start-btn" @click="startQuestionnaire">
            <span>开始测评</span>
            <i class="fas fa-arrow-right"></i>
          </button>
          <p class="action-tip">预计需要3-10分钟完成</p>
        </div>
      </div>

      <!-- 底部装饰元素 -->
      <div class="decoration-bottom">
        <div class="wave"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    startQuestionnaire() {
      this.$router.push({ name: "自评量表" });
    },
  },
};
</script>

<style scoped>
/* 导航栏样式保持不变 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  /* background: white; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 15px;
  z-index: 1000;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}
.nav-back {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  border: none;
  cursor: pointer;
}

.nav-back:hover {
  background: #eef0ff;
}
.nav-title {
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

/* 引导语封面样式 */
.questionnaire-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.cover-container {
  position: relative;
  min-height: calc(100vh - 60px);
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 装饰元素 */
.decoration-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.circle-1 {
  width: 150px;
  height: 150px;
  background: #4a90e2;
  top: -50px;
  left: -50px;
}

.circle-2 {
  width: 100px;
  height: 100px;
  background: #7ed321;
  top: 30px;
  right: 10%;
}

.circle-3 {
  width: 80px;
  height: 80px;
  background: #f5a623;
  top: 80px;
  right: 20%;
}

.decoration-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0z" fill="%23ffffff" opacity=".5"/></svg>');
  background-size: 1200px 100px;
}

/* 主要内容区域 */
.cover-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover-header {
  text-align: center;
  margin-bottom: 40px;
}

.cover-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.title-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #4a90e2, #7ed321);
  margin: 0 auto 15px;
  border-radius: 2px;
}

.cover-subtitle {
  font-size: 18px;
  color: #5a6c7d;
  font-weight: 400;
}

/* 信息卡片样式 */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.info-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #4a90e2, #63b3ed);
  color: white;
}

.card-icon {
  font-size: 20px;
  margin-right: 12px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.card-content {
  padding: 25px;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: #2c3e50;
  min-width: 120px;
}

.info-value {
  color: #5a6c7d;
}

.card-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #5a6c7d;
}

.card-content p:last-child {
  margin-bottom: 0;
}

.privacy-note {
  font-style: italic;
  color: #7f8c8d;
  font-size: 14px;
  padding-top: 10px;
  border-top: 1px dashed #e0e0e0;
}

/* 操作区域 */
.action-section {
  text-align: center;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a90e2, #63b3ed);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.start-btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.start-btn:hover i {
  transform: translateX(5px);
}

.action-tip {
  margin-top: 15px;
  color: #7f8c8d;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cover-content {
    padding: 30px 15px;
  }

  .cover-title {
    font-size: 26px;
  }

  .cover-subtitle {
    font-size: 16px;
  }

  .card-header {
    padding: 15px 20px;
  }

  .card-content {
    padding: 20px;
  }

  .info-item {
    flex-direction: column;
  }

  .info-label {
    min-width: auto;
    margin-bottom: 5px;
  }

  .start-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
}
</style>
